Builder

data class Builder(    email: String? = null,     invitedPhoneNumber: String? = null,     invitedUserId: String? = null,     lang: String? = null,     customMessage: String? = null)

Builder class for constructing InviteUser instances.

Allows for step-by-step configuration of invitation parameters. Use the build() method to generate an immutable InviteUser instance.

Constructors

Link copied to clipboard
constructor(    email: String? = null,     invitedPhoneNumber: String? = null,     invitedUserId: String? = null,     lang: String? = null,     customMessage: String? = null)

Functions

Link copied to clipboard

Builds an immutable InviteUser instance using the configured parameters.

Link copied to clipboard
fun customMessage(@Size(min = 0, max = 100000) customMessage: String?): InviteUser.Builder

Sets a custom message for the invitation.

Link copied to clipboard
fun email(@Size(min = 3, max = 255) email: String?): InviteUser.Builder

Sets the email address of the user to invite.

Link copied to clipboard
fun invitedPhoneNumber(invitedPhoneNumber: String?): InviteUser.Builder

Sets the phone number of the user to invite.

Link copied to clipboard
fun invitedUserId(invitedUserId: String?): InviteUser.Builder

Sets the Rainbow user ID of the user to invite.

Link copied to clipboard
fun lang(lang: String?): InviteUser.Builder

Sets the preferred language of the invitation.